home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / foss11b3.zip / SETUP.CMD < prev   
OS/2 REXX Batch file  |  1996-06-20  |  2KB  |  40 lines

  1. /* FOSS/2 v1.1 installation script */
  2. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  3. call SysLoadFuncs
  4.  
  5. cur_dir = directory()
  6.  
  7. say 'Creating FOSS/2 folder:'
  8. call SysMoveObject "<FOSSFOLDER>", "<WP_DESKTOP>"
  9. if SysCreateObject( "WPFolder", "FOSS/2 v1.1", "<WP_DESKTOP>",,
  10.                     "OBJECTID=<FOSSFOLDER>" ) then
  11.   say '- FOSS/2 v1.1 folder created'
  12.  
  13. say 'Creating FOSS/2 objects:'
  14.  
  15. call SysDestroyObject "<FOSSSETUP>"
  16. if SysCreateObject( "WPProgram", "Initial setup", "<FOSSFOLDER>",,
  17.                     "OBJECTID=<FOSSSETUP>;EXENAME="cur_dir"\FOSS.EXE;PARAMETERS=-I;STARTUPDIR="cur_dir ) then
  18.   say '- Setup object created'
  19.  
  20. call SysDestroyObject "<FOSS#0>"
  21. if SysCreateObject( "WPProgram", "FOSS/2 Node #0", "<FOSSFOLDER>",,
  22.                     "OBJECTID=<FOSS#0>;EXENAME="cur_dir"\FOSS.EXE;PARAMETERS=0;STARTUPDIR="cur_dir ) then
  23.   say '- Node #0 object created'
  24.  
  25. call SysDestroyObject "<FOSS#1>"
  26. if SysCreateObject( "WPProgram", "FOSS/2 Node #1", "<FOSSFOLDER>",,
  27.                     "OBJECTID=<FOSS#1>;EXENAME="cur_dir"\FOSS.EXE;PARAMETERS=1;STARTUPDIR="cur_dir ) then
  28.   say '- Node #1 object created'
  29.  
  30. call SysDestroyObject "<FOSSDOC>"
  31. if SysCreateObject( "WPProgram", "Documentation", "<FOSSFOLDER>",,
  32.                     "OBJECTID=<FOSSDOC>;EXENAME=EXPLORE.EXE;PARAMETERS=welcome.html" ) then
  33.   say '- Documentation object created'
  34.  
  35. say
  36. say 'Now, run Initial setup if this is first time installation, else, run Node #0'
  37. say 'and check your configuration.'
  38.  
  39. call SysDropFuncs
  40.